import { NgModule, NgModuleFactory, ModuleWithProviders } from '@angular/core';
import { CoreModule, LazyModuleFactory } from '@abp/ng.core';
import { ThemeSharedModule } from '@abp/ng.theme.shared';
import { TaskTodoComponent } from './components/task-todo.component';
import { TaskTodoRoutingModule } from './task-todo-routing.module';

@NgModule({
  declarations: [TaskTodoComponent],
  imports: [CoreModule, ThemeSharedModule, TaskTodoRoutingModule],
  exports: [TaskTodoComponent],
})
export class TaskTodoModule {
  static forChild(): ModuleWithProviders<TaskTodoModule> {
    return {
      ngModule: TaskTodoModule,
      providers: [],
    };
  }

  static forLazy(): NgModuleFactory<TaskTodoModule> {
    return new LazyModuleFactory(TaskTodoModule.forChild());
  }
}
